home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
web
/
noweb
/
src
/
shell
/
notangle.nw
< prev
next >
Wrap
Text File
|
1995-02-24
|
774b
|
26 lines
<<copyright notice>>=
# Copyright 1991 by Norman Ramsey. All rights reserved.
# See file COPYRIGHT for more information.
<<notangle>>=
#!/bin/sh
<<copyright notice>>
LIB=|LIBDIR|
markup=$LIB/markup opt= arg= markopt= filters=
while [ $# -gt 0 ]; do
case $1 in
-ml|-m3|-awk|-icn|-icon|-pascal|-c|-c++|-f77|-f90|-tex|-w[0-9][0-9]*) ;;
# deliberately ignore nountangle args
-t) ;; # this is default
-t*) markopt="$markopt -t" ; opt="$opt '$1'" ;;
# copy tabs at markup, use width given in notangle
-filter) filters="$filters $2 | " ; shift ;;
-markup) markup="$2" ; shift ;;
-) arg="$arg '$1'" ;;
-*) opt="$opt '$1'" ;;
*) arg="$arg '$1'" ;;
esac
shift
done
PATH="$PATH:$LIB" eval "$markup $markopt $arg | $filters $LIB/nt $opt"
exit $?